<script type="text/javascript">
$(document).ready(function(){
$("#cluster_table").jqGrid({
        url: "/grid_cluster",
        datatype: "json",
        mtype: "GET",
        colNames:["编号","集群名称", "显示名称", "节点个数", "存储使用率", "端口配置", "IQN"],
        colModel :[
            {name:"id", index:"id", width:10, align:"left",hidden:true},
            {name:"name", index:"name", width:15, align:"left"},
            {name:"name", index:"name", width:15, align:"left"},
            {name:"nodes", index:"nodes", width:15, align:"left",sortable:false},
            {name:"usage", index:"usage", width:15, align:"left"},
            {name:"iscsiPort", index:"iscsiPort", width:15, align:"left"},
            {name:"iqn", index:"iqn", width:15, align:"left"},
        ],
        rowNum:10,
        rowList:[10,20,30],
        sortname: "id",
        sortorder: "desc",
        viewrecords: true,
        multiselectWidth:40,
        altclass:"ui-priority-secondary",
        altRows:true,
        width: "100%",
        autowidth:true,
        height: 480,
        gridComplete:function(){
        }
});
});
</script>
<div class="panel panel-default">
    <div class="panel-heading">
            <h3 class="panel-title">集群列表</h3>
    </div>
    <div class="panel-body">
        <table id="cluster_table" class="display" cellspacing="0" width="100%">
        </table>
    </div>
</div>

